import useRequest from "../hooks/useRequest";

/**
 * 登录
 * @param {String} otp_code
 * @param {String} password
 * @param {String} username
 */
export function login(data) {
  return useRequest({ url: "/auth/login", data });
}
